package de.tabuma.ssoclient.entity;

import java.util.*;

/**
 * @author $Author: $
 * @version $Revision: $
 * @since $Date: $
 */
public class SSO {

    Long id;
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    
    int userId;
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userID) {
        this.userId = userID;
    }

    String ssoId;
    public String getSsoId() {
        return ssoId;
    }
    public void setSsoId(String ssoID) {
        this.ssoId = ssoID;
    }

    Date date;
    public Date getDate() {
        return date;
    }
    public void setDate(Date date) {
        this.date = date;
    }
    
    public long getLastTimeInMinutes() {
        return (Calendar.getInstance().getTimeInMillis() - date.getTime())/1000/60;
    }
}